public class StopWatch { 

    private final long start;

    public StopWatch() {
        start = System.currentTimeMillis();
    } 

    // return time (in seconds) since this object was created
    public double elapsedTime() {
        long now = System.currentTimeMillis();
        return (now - start) / 1000.0;
    } 
    public static void main(String[] args)
    {
    	StopWatch watch = new StopWatch();
    	System.out.println(" TIme Elapsed :" + watch.elapsedTime());
    }

} 


